package com.hfzy.ihk.facade.linkcall.entity.task;

import com.hfzy.ihk.common.facade.BaseEntity;
import com.hfzy.ihk.facade.linkcall.enums.CallTaskPhoneSource;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * Created by Administrator on 2018/7/19.
 * 呼叫任务的号码
 * @author wws
 */
@Document(indexName = "#{elasticSearchConfig.indexName()}_call_task_phone",shards = 24,replicas = 2, type = "data")
public class CallTaskPhone implements BaseEntity {

    @Id
    private String id;

    @Field(type = FieldType.Keyword)
    private String callTaskId;

    private long version;

    private CallTaskPhoneSource callTaskPhoneSource;

    @Field(type = FieldType.Keyword)
    private String phone;

    @Field(type = FieldType.Keyword)
    private String customerName;

    private boolean hadCalled=false;

    private String dataId = "-1";//来源id 用于标识从哪来的 如：电子客簿资料 ， dataId 是客id

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public String getCallTaskId() {
        return callTaskId;
    }

    public void setCallTaskId(String callTaskId) {
        this.callTaskId = callTaskId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public CallTaskPhoneSource getCallTaskPhoneSource() {
        return callTaskPhoneSource;
    }

    public void setCallTaskPhoneSource(CallTaskPhoneSource callTaskPhoneSource) {
        this.callTaskPhoneSource = callTaskPhoneSource;
    }

    public boolean isHadCalled() {
        return hadCalled;
    }

    public void setHadCalled(boolean hadCalled) {
        this.hadCalled = hadCalled;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }
}
